<!-- 考勤卡 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>考勤卡</title>
</head>
<body>
	<!-- 考勤卡 -->
	<div id="ly-bt-timecode" style="padding: 5px; height:auto">
			<!-- 添加 -->
			<a id="ly-bt-holidayType-insert" href="JavaScript:timecodeAdd();" class="easyui-linkbutton ly-add-holidayType" data-options="iconCls:'icon-add',text:'新增'"></a>
			
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			
			
			搜索文本	<a class="easyui-textbox" data-options="width:200"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-search',text:'搜索'"></a>
	</div>
	<table id="#ly-timecode-dlg1"  class="easyui-datagrid" 
        data-options="
        fitColumns:true,
        singleSelect:true,
		url:'checking/TimeCoadList',
		method:'get',
		border:false,
		toolbar: '#ly-bt-timecode'
		
        "
		>   
    <thead>   
        <tr>   
        	<th data-options="field:'timecardId',width:100" align="center">卡号</th>   
        	<th data-options="field:'user',width:100" align="center">员工</th>
        
        	<th data-options="field:'timecardRemark',width:140" align="center">备注</th>
        	<th data-options="field:'timecardCreator',width:100" align="center">创建者</th>
        	<th data-options="field:'timecardTime',width:100" align="center">创建日期</th>
        	<th data-options="field:'timecardUpdateEmp',width:100" align="center">最后更新</th>  
        	<th data-options="field:'timecardUpdate',width:100" align="center">更新日期</th>  
        	<th data-options="field:'timecardState',width:100,
			
			"  align="center">状态</th>   
		</tr>   
			
    </thead>  
 
     
	</table>  
	
	<script type="text/javascript">
		/* 新增考勤卡 */
		function timecodeAdd(){
			
	  		$('#ly-timecode-insert').dialog('open').dialog('center');
			
			
   		}
	
   	</script>
	<!-- 新增 -->
	<div id="ly-timecode-insert" class="easyui-dialog" style="padding:20px 20px;width:450px;"
	 data-options="inline:true,modal:true,closed:true,title:'新增考勤卡',iconCls:'icon-save',
		buttons:[{
					text:'保存',
					iconCls:'icon-add',
					handler:function(){
						<!-- 提交 -->
						$('#ly-timecode-submit').form('submit', {    
						      
						    onSubmit: function(param){    
						       
						    },    
						    success:function(v){    
						      if(v){
						      $('#ly-timecode-insert').dialog('close')
						      $('#ly-timecode-submit').form('clear')
						      $('#ly-timecode-dlg1').datagrid('reload')
						     }else{
						     	$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
						     }
						    }    
						});  
												
					
					}
				},{
					text:'关闭',
					iconCls:'icon-cancel',
					handler:function(){
						$('#ly-timecode-insert').dialog('close')
					}
				}]
				
				
		">
		<form id="ly-timecode-submit" action="checking/add_HolidayType" method="post">
	
			<div style="margin-bottom:10px">
				<input name="holidaytypeName" class="easyui-textbox" data-options="label:'卡号：',required:true"  prompt="请输入" style="width:80%;height:25px">
			</div>
			<div style="margin-bottom:10px">
				<select id="ly-cc-holidayType" class="easyui-combobox" data-options="label:'薪资处理：'" name="holidaytypeIsemolument" style="width:80%;">   
   					 	<option value="1">有薪</option>   
  						<option value="0">无薪</option>   
				</select>  
			</div>
			
			
			<div style="margin-bottom:10px">
				<label >假种：</label>
				&nbsp&nbsp
				&nbsp&nbsp
				&nbsp&nbsp
				&nbsp&nbsp
				法定假：
				<input type="radio" name="holidaytypeClass" value="0"/>
				&nbsp&nbsp
				个人假种：
				<input type="radio" name="holidaytypeClass" value="1"/>
			</div>
			<div style="margin-bottom:10px">
				系统
				<input type="checkbox" name="holidaytypeIsbuilt" value="0"/>
				<!-- 停用
				<input type="checkbox" name="" value="停用"/> -->
			</div>
			<div>
				<input style="height:30px" name="holidaytypeRemark" class="easyui-textbox" data-options="label:'备注：',multiline:true" style="width:80%;" />
			</div>
		</form>	
	</div>
</body>
</html>